package com.example.lenovo.scaleview;

import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        setContentView(R.layout.activity_main);
        super.onCreate(savedInstanceState);
        ZoomImageView zoomImageView=findViewById(R.id.iv);
        zoomImageView.setImage(BitmapFactory.decodeResource(getResources(),R.drawable.a));
    }
}
